# data_center_data.py
from datacenter_1_donghuan import get_datacenter_1haolou_data
from datacenter_11_donghuan import get_datacenter_11haolou_data
from cunchu_vm import get_cunchu_vm_data
from cunchu_5510fv import cunchu_5510fv
from cunchu_oav16 import cunchu_oav16
from lenove_cunchu import lenovo_cunchu
from cunchu_qunhui import qunhui_cunchu
from ups_109 import ups_109
# 调用 get_datacenter_1haolou_data 函数并存储返回值
datacenter_1_data = get_datacenter_1haolou_data()
datacenter_11_data = get_datacenter_11haolou_data()
# 获取存储信息
cunchu_vm_data = get_cunchu_vm_data()
cunchu_5510fv_data = cunchu_5510fv()
cunchu_oav16_data = cunchu_oav16()
lenove_cunchu_data = lenovo_cunchu()
qunhui_data = qunhui_cunchu()
ups_109_data = ups_109()
    # 数据字典
def get_data():
    data = {
        'humiavg': datacenter_1_data['humiavg_value'],
        'humimax': datacenter_1_data['humimax_value'],
        'tempavg': datacenter_1_data['tempavg_value'],
        'tempmax': datacenter_1_data['tempmax_value'],
        'combined_string': datacenter_1_data['combined_string'],
        'second_last_value': datacenter_1_data['second_last_value'],
        'last_value': datacenter_1_data['last_value'],
        'B_UPS_status': datacenter_1_data['B_UPS_status'],
        'B_time_value': datacenter_1_data['B_time_value'],
        #------------------11号楼机房----------------
        'nckt_wdsd_value': datacenter_11_data['nckt_wdsd_value'],
        'bckt_wdsd_value': datacenter_11_data['bckt_wdsd_value'],
        'max_wd': datacenter_11_data['max_wd'],
        'avg_wd': datacenter_11_data['avg_wd'],
        'max_sd': datacenter_11_data['max_sd'],
        'avg_sd': datacenter_11_data['avg_sd'],
        'UPSB_gdzt_value': datacenter_11_data['UPSB_gdzt_value'],
        'UPSB_bdsj_value': datacenter_11_data['UPSB_bdsj_value'],
        'UPSB_dcdy_value': datacenter_11_data['UPSB_dcdy_value'],
        'dianchi_nance_B_soh_value': datacenter_11_data['dianchi_nance_B_soh_value'],
        'UPSB_syrl_value': datacenter_11_data['UPSB_syrl_value'],
        'UPSA_gdzt_value': datacenter_11_data['UPSA_gdzt_value'],
        'UPSA_bdsj_value': datacenter_11_data['UPSA_bdsj_value'],
        'UPSA_dcdy_value': datacenter_11_data['UPSA_dcdy_value'],
        'dianchi_nance_A_soh_value': datacenter_11_data['dianchi_nance_A_soh_value'],
        'UPSA_syrl_value': datacenter_11_data['UPSA_syrl_value'],
        'alarm_value': datacenter_11_data['alarm_value'],
        'UPS_beice_gdzt_value': datacenter_11_data['UPS_beice_gdzt_value'],
        'UPS_beice_bdsj_value': datacenter_11_data['UPS_beice_bdsj_value'],
        'UPS_beice_dcdy_value': datacenter_11_data['UPS_beice_dcdy_value'],
        'dianchi_beice_soh_value': datacenter_11_data['dianchi_beice_soh_value'],
        'UPS_beice_syrl_value': datacenter_11_data['UPS_beice_syrl_value'],
        # 电池组信息
        'xdc_A_32_min_v': datacenter_11_data['xdc_A_32_min_v'],
        'xdc_A_32_min_v_sn': datacenter_11_data['xdc_A_32_min_v_sn'],
        'xdc_A_32_min_v_dz': datacenter_11_data['xdc_A_32_min_v_dz'],
        'xdc_A_160_min_dz': datacenter_11_data['xdc_A_160_min_dz'],
        'xdc_A_160_min_dz_sn': datacenter_11_data['xdc_A_160_min_dz_sn'],
        'xdc_A_160_min_dz_v': datacenter_11_data['xdc_A_160_min_dz_v'],
        'xdc_A_64_min_v': datacenter_11_data['xdc_A_64_min_v'],
        'xdc_A_64_min_v_sn': datacenter_11_data['xdc_A_64_min_v_sn'],
        'xdc_A_64_min_v_dz': datacenter_11_data['xdc_A_64_min_v_dz'],
        'xdc_A_192_min_dz': datacenter_11_data['xdc_A_192_min_dz'],
        'xdc_A_192_min_dz_sn': datacenter_11_data['xdc_A_192_min_dz_sn'],
        'xdc_A_192_min_dz_v': datacenter_11_data['xdc_A_192_min_dz_v'],
        'xdc_B_1_mini_dianya_value': datacenter_11_data['xdc_B_1_mini_dianya_value'],
        'xdc_B_1_mini_dianya_sn': datacenter_11_data['xdc_B_1_mini_dianya_sn'],
        'xdc_B_1_mini_dianya_neizu': datacenter_11_data['xdc_B_1_mini_dianya_neizu'],
        'xdc_B_1_max_neizu_value': datacenter_11_data['xdc_B_1_max_neizu_value'],
        'xdc_B_1_max_neizu_sn': datacenter_11_data['xdc_B_1_max_neizu_sn'],
        'xdc_B_1_max_neizu_dc_dianya': datacenter_11_data['xdc_B_2_max_neizu_dc_dianya'],
        'xdc_B_2_mini_dianya_value': datacenter_11_data['xdc_B_2_mini_dianya_value'],
        'xdc_B_2_mini_dianya_sn': datacenter_11_data['xdc_B_2_mini_dianya_sn'],
        'xdc_B_2_mini_dianya_neizu': datacenter_11_data['xdc_B_2_mini_dianya_neizu'],
        'xdc_B_2_max_neizu_value': datacenter_11_data['xdc_B_2_max_neizu_value'],
        'xdc_B_2_max_neizu_sn': datacenter_11_data['xdc_B_2_max_neizu_sn'],
        'xdc_B_2_max_neizu_dc_dianya': datacenter_11_data['xdc_B_2_max_neizu_dc_dianya'],
        'xdc_109_1_mini_dianya_value': datacenter_11_data['xdc_109_1_mini_dianya_value'],
        'xdc_109_1_mini_dianya_sn': datacenter_11_data['xdc_109_1_mini_dianya_sn'],
        'xdc_109_1_mini_dianya_neizu': datacenter_11_data['xdc_109_1_mini_dianya_neizu'],
        'xdc_109_1_max_neizu_value': datacenter_11_data['xdc_109_1_max_neizu_value'],
        'xdc_109_1_max_neizu_sn': datacenter_11_data['xdc_109_1_max_neizu_sn'],
        'xdc_109_1_max_neizu_dc_dianya': datacenter_11_data['xdc_109_1_max_neizu_dc_dianya'],
        'xdc_201_1_mini_dianya_value': datacenter_11_data['xdc_201_1_mini_dianya_value'],
        'xdc_201_1_mini_dianya_sn': datacenter_11_data['xdc_201_1_mini_dianya_sn'],
        'xdc_201_1_mini_dianya_neizu': datacenter_11_data['xdc_201_1_mini_dianya_neizu'],
        'xdc_201_1_max_neizu_value': datacenter_11_data['xdc_201_1_max_neizu_value'],
        'xdc_201_1_max_neizu_sn': datacenter_11_data['xdc_201_1_max_neizu_sn'],
        'xdc_201_1_max_neizu_dc_dianya': datacenter_11_data['xdc_201_1_max_neizu_dc_dianya'],
        'xdc_201_2_mini_dianya_value': datacenter_11_data['xdc_201_2_mini_dianya_value'],
        'xdc_201_2_mini_dianya_sn': datacenter_11_data['xdc_201_2_mini_dianya_sn'],
        'xdc_201_2_mini_dianya_neizu': datacenter_11_data['xdc_201_2_mini_dianya_neizu'],
        'xdc_201_2_max_neizu_value': datacenter_11_data['xdc_201_2_max_neizu_value'],
        'xdc_201_2_max_neizu_sn': datacenter_11_data['xdc_201_2_max_neizu_sn'],
        'xdc_201_2_max_neizu_dc_dianya': datacenter_11_data['xdc_201_2_max_neizu_dc_dianya'],
        # ----------
    #----------
        # ---------华为存储vm数据字典-----------------
        'vm_device_status_description': cunchu_vm_data['vm_device_status_description'],
        'vm_num_alarms': cunchu_vm_data['vm_num_alarms'],
        'vm_alarm_details': cunchu_vm_data['vm_alarm_details'],
        'vm_lun_data': cunchu_vm_data['vm_lun_data'],
        'vm_storage_pools': cunchu_vm_data['vm_storage_pools'],
    #存储5510fv
        'device_status_description': cunchu_5510fv_data['device_status_description'],
        'num_alarms': cunchu_5510fv_data['num_alarms'],
        'alarm_details': cunchu_5510fv_data['alarm_details'],
        'file_systems': cunchu_5510fv_data['file_systems'],
        'storage_pools': cunchu_5510fv_data['storage_pools'],
        'fv_lun_data': cunchu_5510fv_data['fv_lun_data'],
    #存储oav16
        'oa_device_status_description': cunchu_oav16_data['oa_device_status_description'],
        'oa_num_alarms': cunchu_oav16_data['oa_num_alarms'],
        'oa_alarm_details': cunchu_oav16_data['oa_alarm_details'],
        'oa_file_systems': cunchu_oav16_data['oa_file_systems'],
        'oa_storage_pools': cunchu_oav16_data['oa_storage_pools'],
    #ups_109
        'td1_content': ups_109_data['td1_content'],
        'ups1_dianchi': ups_109_data['ups1_dianchi'],
        'td2_content': ups_109_data['td2_content'],
        'ups2_dianchi': ups_109_data['ups2_dianchi'],
    # -------------联想存储--财务共享--------------------------
        'fssc_log_message': lenove_cunchu_data['fssc_log_message'],
        'fssc_storage_full_size_T': lenove_cunchu_data['fssc_storage_full_size_T'],
        'fssc_storage_full_used_T': lenove_cunchu_data['fssc_storage_full_used_T'],
        'fssc_storage_usage': lenove_cunchu_data['fssc_storage_usage'],
        'storage_vloumes_json_size_T': lenove_cunchu_data['storage_vloumes_json_size_T'],
        'storage_vloumes_json_used_T': lenove_cunchu_data['storage_vloumes_json_used_T'],
        'caiwunas_usage': lenove_cunchu_data['caiwunas_usage'],
    #群晖存储
        # ----------群辉存储-----------------------
        'SA3600_201_disk_healthy': qunhui_data['SA3600_201_disk_healthy'],
        'SA3600_201_system_healthy': qunhui_data['SA3600_201_system_healthy'],
        'SA3600_201_total_resize': qunhui_data['SA3600_201_total_resize'],
        'SA3600_201_free_resize': qunhui_data['SA3600_201_free_resize'],
        'SA3600_201_usage': qunhui_data['SA3600_201_usage'],
        'SA3600_202_disk_healthy': qunhui_data['SA3600_202_disk_healthy'],
        'SA3600_202_system_healthy': qunhui_data['SA3600_202_system_healthy'],
        'SA3600_202_total_resize': qunhui_data['SA3600_202_total_resize'],
        'SA3600_202_free_resize': qunhui_data['SA3600_202_free_resize'],
        'SA3600_202_usage': qunhui_data['SA3600_202_usage'],
        'caiwu_nas_disk_healthy': qunhui_data['caiwu_nas_disk_healthy'],
        'caiwu_nas_system_healthy': qunhui_data['caiwu_nas_system_healthy'],
        'caiwu_nas1_total_resize': qunhui_data['caiwu_nas1_total_resize'],
        'caiwu_nas1_free_resize': qunhui_data['caiwu_nas1_free_resize'],
        'caiwu_nas1_usage': qunhui_data['caiwu_nas1_usage'],
        'caiwu_nas2_total_resize': qunhui_data['caiwu_nas2_total_resize'],
        'caiwu_nas2_free_resize': qunhui_data['caiwu_nas2_free_resize'],
        'caiwu_nas2_usage': qunhui_data['caiwu_nas2_usage'],
        'caiwu_nas3_total_resize': qunhui_data['caiwu_nas3_total_resize'],
        'caiwu_nas3_free_resize': qunhui_data['caiwu_nas3_free_resize'],
        'caiwu_nas3_usage': qunhui_data['caiwu_nas3_usage'],
    # ----------联想存储--NC---------------------
        'nc_log_message': lenove_cunchu_data['nc_log_message'],
        'nc_storage_full_size_T': lenove_cunchu_data['nc_storage_full_size_T'],
        'nc_storage_full_used_T': lenove_cunchu_data['nc_storage_full_used_T'],
        'nc_storage_usage': lenove_cunchu_data['nc_storage_usage'],
        'nc_storage_volume_nas_muyuan_size': lenove_cunchu_data['nc_storage_volume_nas_muyuan_size'],
        'nc_storage_volume_nas_muyuan_used': lenove_cunchu_data['nc_storage_volume_nas_muyuan_used'],
        'nc_storage_volume_nas_muyuan_useage': lenove_cunchu_data['nc_storage_volume_nas_muyuan_useage'],
        'nc_storage_volume_ncdb_asm_size': lenove_cunchu_data['nc_storage_volume_ncdb_asm_size'],
        'nc_storage_volume_ncdb_asm_used': lenove_cunchu_data['nc_storage_volume_ncdb_asm_used'],
        'nc_storage_volume_ncdb_asm_useage': lenove_cunchu_data['nc_storage_volume_ncdb_asm_useage'],
        'nc_storage_volume_ncdb_asm2_size': lenove_cunchu_data['nc_storage_volume_ncdb_asm2_size'],
        'nc_storage_volume_ncdb_asm2_used': lenove_cunchu_data['nc_storage_volume_ncdb_asm2_used'],
        'nc_storage_volume_ncdb_asm2_useage': lenove_cunchu_data['nc_storage_volume_ncdb_asm2_useage'],
        'nc_storage_volume_ncdb_back_size': lenove_cunchu_data['nc_storage_volume_ncdb_back_size'],
        'nc_storage_volume_ncdb_back_used': lenove_cunchu_data['nc_storage_volume_ncdb_back_used'],
        'nc_storage_volume_ncdb_back_useage': lenove_cunchu_data['nc_storage_volume_ncdb_back_useage'],
        'nc_storage_volume_ncdb_ocr_size': lenove_cunchu_data['nc_storage_volume_ncdb_ocr_size'],
        'nc_storage_volume_ncdb_ocr_used': lenove_cunchu_data['nc_storage_volume_ncdb_ocr_used'],
        'nc_storage_volume_ncdb_ocr_useage': lenove_cunchu_data['nc_storage_volume_ncdb_ocr_useage'],
        'nc_storage_volume_ncdg_size': lenove_cunchu_data['nc_storage_volume_ncdg_size'],
        'nc_storage_volume_ncdg_used': lenove_cunchu_data['nc_storage_volume_ncdg_used'],
        'nc_storage_volume_ncdg_useage': lenove_cunchu_data['nc_storage_volume_ncdg_useage'],
        'nc_storage_volume_svm0_root_size': lenove_cunchu_data['nc_storage_volume_svm0_root_size'],
        'nc_storage_volume_svm0_root_used': lenove_cunchu_data['nc_storage_volume_svm0_root_used'],
        'nc_storage_volume_svm0_root_useage': lenove_cunchu_data['nc_storage_volume_svm0_root_useage'],
        'nc_storage_volume_svm_fc_root_size': lenove_cunchu_data['nc_storage_volume_svm_fc_root_size'],
        'nc_storage_volume_svm_fc_root_used': lenove_cunchu_data['nc_storage_volume_svm_fc_root_used'],
        'nc_storage_volume_svm_fc_root_useage': lenove_cunchu_data['nc_storage_volume_svm_fc_root_useage'],
        'nc_storage_volume_svm_nfs_root_size': lenove_cunchu_data['nc_storage_volume_svm_nfs_root_size'],
        'nc_storage_volume_svm_nfs_root_used': lenove_cunchu_data['nc_storage_volume_svm_nfs_root_used'],
        'nc_storage_volume_svm_nfs_root_useage': lenove_cunchu_data['nc_storage_volume_svm_nfs_root_useage'],
    }
    return data